/**
 * Wrapper for an int.
 * Used instead of Integer because Integer is immutable.
 * @author pabergg
 *
 */
public class IntWrapper {

	int value;
	/**
	 * Creates an IntWrapper holding the value a
	 * specified as an parameter.
	 * @param a
	 */
	public IntWrapper(int a){
		value=a;
	}
	
	/**
	 * Returns an int with the value of the IntWrapper.
	 * The constructor guarantees that the value is an
	 * valid int value.
	 * @return value that this IntWrapper holds
	 */
	public int get(){
		return value;
	}
	
	/**
	 * change the value stored to the given parameter
	 * @param a
	 */
	public void set(int a){
		value=a;
	}
}
